/*****************************************************************************
*  Copyright Statement:
*  --------------------
*  This software is protected by Copyright and the information contained
*  herein is confidential. The software may not be copied and the information
*  contained herein may not be used or disclosed except with the written
*  permission of MediaTek Inc. (C) 2005
*
*  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
*  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
*  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
*  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
*  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
*  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
*  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
*  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
*  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
*  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
*  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
*  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
*  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
*  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
*  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
*  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
*  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. 
*
*  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
*  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
*  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
*  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
*  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
/**
 *	Copyright Notice
 *	?2002 - 2003, Pixtel Communications, Inc., 1489 43rd Ave. W.,
 *	Vancouver, B.C. V6M 4K8 Canada. All Rights Reserved.
 *  (It is illegal to remove this copyright notice from this software or any
 *  portion of it)
 */

/**************************************************************

	FILENAME	: Res_IdleDemo.c

  	PURPOSE		: Populate Resource for IdleDemo

	REMARKS		: nil

	AUTHOR		: shawshank

	DATE		: Nov-02-2007

**************************************************************/
//#include "StdC.h"
#include "CustomCfg.h"
#include "MMI_features.h" 
#include "PixtelDataTypes.h"
 
#ifdef FIRST_PASS
#include "BuildCfg.h"
#endif

#ifdef __MMI_DSM_NEW__
#include "mrp_features.h"
#include "mmiDsmDef.h"
#endif

#include "GameDefs.h"
#include "GlobalMenuItems.h"
#include "FunAndGamesDefs.h"
#ifdef DEVELOPER_BUILD_FIRST_PASS
#include "PopulateRes.h"


#define DSM_RES_PATH            "..\\\\..\\\\Customer\\\\Images\\\\DSM"                       

#ifdef __MMI_MAINLCD_240X320__
#define DSM_WEATHER_RES_PATH            "..\\\\..\\\\Customer\\\\Images\\\\DSM\\\\Weather\\\\240"   
#elif defined(__MMI_MAINLCD_176X220__)
#define DSM_WEATHER_RES_PATH            "..\\\\..\\\\Customer\\\\Images\\\\DSM\\\\Weather\\\\176" 
#else
#define DSM_WEATHER_RES_PATH            "..\\\\..\\\\Customer\\\\Images\\\\DSM\\\\Weather\\\\240" 
#endif

#if (defined(__MMI_MAINLCD_128X160__)||defined(__MMI_MAINLCD_176X220__))
#define DSM_LIST_RES_ICONS_PATH             DSM_RES_PATH"\\\\LIST_ICONS\\\\16"
#else
#define DSM_LIST_RES_ICONS_PATH             DSM_RES_PATH"\\\\LIST_ICONS\\\\26"
#endif


#define MR_ADD_APPLICATION_MENUITEM(index, menuid, parentid, str, display, img, path) \
	ADD_APPLICATION_STRING2(str, display, display); \
	ADD_APPLICATION_IMAGE2(img, DSM_LIST_RES_ICONS_PATH"\\\\"path, path);\	
	ADD_APPLICATION_MENUITEM((menuid, 0, 0, SHOW,MOVEABLEWITHINPARENT|INSERTABLE,1, str, img)); \
	INSERT_DSM_MENU_ITEM(menuid, parentid, index)


/**************************************************************

	FUNCTION NAME		: PopulateIdleMenuRes()

  	PURPOSE				: To Initialize the resources for the 
						  idle app 

	INPUT PARAMETERS	: nil

	OUTPUT PARAMETERS	: nil

	RETURNS				: void

	REMARKS				: 

**************************************************************/
void PopulateMythroadRes(void)
{	
#ifndef __MR_CFG_FEATURE_OVERSEA__

	int i = 0;	
#ifdef __MR_CFG_ENTRY_GAMECENTER__
	INSERT_DSM_MENU_ITEM(MENU_DSM_GAME_CENTER, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_NETGAME__
	INSERT_DSM_MENU_ITEM(MENU_DSM_NETGAME, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_TOMCAT__
	INSERT_DSM_MENU_ITEM(MENU_DSM_TOMCAT, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_ANGRYBIRD__
	INSERT_DSM_MENU_ITEM(MENU_DSM_ANGRYBIRD, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_SKIRT__
	INSERT_DSM_MENU_ITEM(MENU_DSM_SKIRT, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_BYDR__
	INSERT_DSM_MENU_ITEM(MENU_DSM_BYDR, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_FRUIT__
	INSERT_DSM_MENU_ITEM(MENU_DSM_FRUIT, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_JS__
	INSERT_DSM_MENU_ITEM(MENU_DSM_JS, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_NES__
	INSERT_DSM_MENU_ITEM(MENU_DSM_NES, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif


#ifdef __MR_CFG_ENTRY_QQ__
	INSERT_DSM_MENU_ITEM(MENU_DSM_QQ, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_NETCLOCK__
	INSERT_DSM_MENU_ITEM(MENU_DSM_NETCLOCK, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif


#ifdef __MR_CFG_ENTRY_FETION__
	INSERT_DSM_MENU_ITEM(MENU_DSM_FETION, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_TIANQI__
	INSERT_DSM_MENU_ITEM(MENU_DSM_TIANQI, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_SINAWEIBO__
	INSERT_DSM_MENU_ITEM(MENU_DSM_SINAWEIBO, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_KAIXIN__
	INSERT_DSM_MENU_ITEM(MENU_DSM_KAIXIN, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif


	i = 0;
#ifdef __MR_CFG_ENTRY_QQBROWSER__
	INSERT_DSM_MENU_ITEM(MENU_DSM_QQBROWSER, MAIN_MENU_SERVICES_MENUID, i++);
#endif


#else	// __MR_CFG_FEATURE_OVERSEA__

	int i = 0;

#ifdef __MR_CFG_ENTRY_SKYBUDDY__
	INSERT_DSM_MENU_ITEM(MENU_DSM_SKYBUDDY, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_MRPSTORE__
	INSERT_DSM_MENU_ITEM(MENU_DSM_MRPSTORE, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_FACEBOOK__
	INSERT_DSM_MENU_ITEM(MENU_DSM_FACEBOOK, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_YAHOO__
	INSERT_DSM_MENU_ITEM(MENU_DSM_YAHOO, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_TWITTER__
	INSERT_DSM_MENU_ITEM(MENU_DSM_TWITTER, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_FRUIT__
	INSERT_DSM_MENU_ITEM(MENU_DSM_FRUIT, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_ANGRYBIRD__
	INSERT_DSM_MENU_ITEM(MENU_DSM_ANGRYBIRD, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_TOMCAT__
	INSERT_DSM_MENU_ITEM(MENU_DSM_TOMCAT, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_SKIRT__
	INSERT_DSM_MENU_ITEM(MENU_DSM_SKIRT, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_BYDR__
	INSERT_DSM_MENU_ITEM(MENU_DSM_BYDR, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif

#ifdef __MR_CFG_ENTRY_NES__
	INSERT_DSM_MENU_ITEM(MENU_DSM_NES, MAIN_MENU_FUNANDGAMES_MENUID, i++);
#endif


#endif	// __MR_CFG_FEATURE_OVERSEA__
}

#endif
